Functions
GenTL

Includes GenTL related APIs. More...

Functions

def MV_CC_EnumInterfacesByGenTL (stIFList, strGenTLPath)
 Enumerates interfaces via GenTL. More...
 
def MV_CC_EnumDevicesByGenTL (stIFInfo, stDevList)
 Enumerates devices via GenTL interfaces. More...
 
def MV_CC_UnloadGenTLLibrary (GenTLPath)
 Unloads the CTI library. More...
 
def MV_CC_CreateHandleByGenTL (self, stDevInfo)
 Creates the device handle by GenTL related device information. More...
 

Detailed Description

Includes GenTL related APIs.

Function Documentation

◆ MV_CC_EnumInterfacesByGenTL()

def MvCameraControl_class.MV_CC_EnumInterfacesByGenTL (   stIFList,
  strGenTLPath 
)

Enumerates interfaces via GenTL.

Parameters
pstIFList[IN][OUT] It refers to interface list.
strGenTLPath[IN] It refers to the CTI file path of GenTL.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.
Remarks
  • The memory of interface list is internally allocated. When this API is called in multiple threads, the SDK will release and apply for the device list memory. It is recommended to avoid multithreaded enumeration operations.
  • MvProducerU3V.cti and MvProducerGEV.cti cannot be called.

◆ MV_CC_EnumDevicesByGenTL()

def MvCameraControl_class.MV_CC_EnumDevicesByGenTL (   stIFInfo,
  stDevList 
)

Enumerates devices via GenTL interfaces.

Parameters
pstIFInfo[IN] It refers to the interface information.
pstDevList[IN][OUT] It refers to the device list.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.
Remarks
The memory of device list is internally allocated. When this API is called in multiple threads, the SDK will release and apply for the device list memory. It is recommended to avoid multithreaded enumeration operations.

◆ MV_CC_UnloadGenTLLibrary()

def MvCameraControl_class.MV_CC_UnloadGenTLLibrary (   GenTLPath)
static

Unloads the CTI library.

Parameters
pGenTLPath[IN] It refers to the CTI file path during the enumeration.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.
Remarks
Make sure that all cameras enumerated by the CTI file are turned off before calling this API. Otherwise, MV_E_PRECONDITION error will be returned.

◆ MV_CC_CreateHandleByGenTL()

def MvCameraControl_class.MV_CC_CreateHandleByGenTL (   self,
  stDevInfo 
)

Creates the device handle by GenTL related device information.

Parameters
handle[IN][OUT] It refers to the device handle.
pstDevInfo[IN] It refers to the pointer to device Information structure.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.
Remarks
Create required resources within library and initialize internal modules according to the input device information.